package com.qqtech.qquan.community.dao;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import com.qqtech.core.frame.dao.BaseDaoImpl;
import com.qqtech.qquan.community.model.CommunityInfo;
import com.qqtech.qquan.community.model.CommunityInfoQuery;
import com.qqtech.qquan.community.model.CommunityInfoVo;

@Repository
public class CommunityInfoDaoImpl extends BaseDaoImpl<CommunityInfo> implements CommunityInfoDao {
	public static final Logger log = LoggerFactory.getLogger(CommunityInfoDaoImpl.class);

	@Override
	public int addPv(Integer id) {
		return sqlSessionTemplate.update(getSqlName("updateAddPv"), id);
	}

	@Override
	public List<CommunityInfoVo> queryRowNumList(CommunityInfoQuery query) {
		return this.sqlSessionTemplate.selectList(getSqlName("selectRowNum"), query);
	}

}
